// API configuration
import { config } from './env';

export const apiConfig = {
  baseURL: config.apiUrl,
  wsURL: config.wsUrl,
  timeout: 10000,
  headers: {
    'Content-Type': 'application/json',
  },
} as const;

export const apiEndpoints = {
  auth: {
    login: '/api/auth/login',
    logout: '/api/auth/logout',
    refresh: '/api/auth/refresh',
  },
  market: {
    indexes: '/api/market/indexes',
    realtime: '/api/market/realtime',
    ranking: '/api/market/ranking',
  },
  trading: {
    orders: '/api/trading/orders',
    positions: '/api/trading/positions',
  },
} as const;
